﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_ChonHangTuGiaoHang : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvKhachHang")]
        private ADVObjects _AdvKhachHang;
        [AccessedThroughProperty("CKAll")]
        private CheckBox _CKAll;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("Label16")]
        private Label _Label16;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("TextBox1")]
        private TextBox _TextBox1;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        private DataView cFrmData;
        public string cFrmKhoaDaChon;
        public string cFrmKhoaKhachHang;
        private IContainer components;
        private clsXuatKhoChiTiet objCT;
        public object objFrmCall;

        public Frm_ChonHangTuGiaoHang()
        {
            base.Load += new EventHandler(this.Frm_ChonHangTuGiaoHang_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.cFrmKhoaDaChon = "";
            this.objCT = new clsXuatKhoChiTiet();
            this.InitializeComponent();
        }

        private void CKAll_CheckedChanged(object sender, EventArgs e)
        {
            int num2 = this.VSlist.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                this.VSlist[i, 1] = this.CKAll.Checked;
            }
        }

        private void CmdCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            NewLateBinding.LateCall(NewLateBinding.LateGet(this.objFrmCall, null, "VSHangHoa", new object[0], null, null, null), null, "Select", new object[] { 0, 0 }, null, null, null, true);
            NewLateBinding.LateSetComplex(NewLateBinding.LateGet(NewLateBinding.LateGet(this.objFrmCall, null, "VSHangHoa", new object[0], null, null, null), null, "Rows", new object[0], null, null, null), null, "Count", new object[] { 1 }, null, null, false, true);
            C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
            int num2 = vSlist.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                if (Conversion.Val(RuntimeHelpers.GetObjectValue(vSlist[i, 1])) != 0.0)
                {
                    this.objCT.Load(Conversions.ToString(vSlist[i, 5]));
                    object[] objArray = new object[0x19];
                    C1.Win.C1FlexGrid.C1FlexGrid grid2 = vSlist;
                    int num3 = i;
                    int num4 = 5;
                    objArray[0] = RuntimeHelpers.GetObjectValue(grid2[num3, num4]);
                    clsXuatKhoChiTiet objCT = this.objCT;
                    objArray[1] = objCT.KhoaHangHoa;
                    C1.Win.C1FlexGrid.C1FlexGrid grid3 = vSlist;
                    int num5 = i;
                    int num6 = 7;
                    objArray[2] = RuntimeHelpers.GetObjectValue(grid3[num5, num6]);
                    C1.Win.C1FlexGrid.C1FlexGrid grid4 = vSlist;
                    int num7 = i;
                    int num8 = 8;
                    objArray[3] = RuntimeHelpers.GetObjectValue(grid4[num7, num8]);
                    clsXuatKhoChiTiet tiet2 = this.objCT;
                    objArray[4] = tiet2.SoSeri;
                    clsXuatKhoChiTiet tiet3 = this.objCT;
                    objArray[5] = tiet3.SoLoHang;
                    clsXuatKhoChiTiet tiet4 = this.objCT;
                    objArray[6] = tiet4.NgayNhap;
                    clsXuatKhoChiTiet tiet5 = this.objCT;
                    objArray[7] = tiet5.HanSuDung;
                    clsXuatKhoChiTiet tiet6 = this.objCT;
                    objArray[8] = tiet6.KhoaDonViTinh;
                    C1.Win.C1FlexGrid.C1FlexGrid grid5 = vSlist;
                    int num9 = i;
                    int num10 = 9;
                    objArray[9] = RuntimeHelpers.GetObjectValue(grid5[num9, num10]);
                    clsXuatKhoChiTiet tiet7 = this.objCT;
                    objArray[10] = tiet7.QuyCach;
                    C1.Win.C1FlexGrid.C1FlexGrid grid6 = vSlist;
                    int num11 = i;
                    int num12 = 4;
                    objArray[11] = RuntimeHelpers.GetObjectValue(grid6[num11, num12]);
                    objArray[12] = 1;
                    clsXuatKhoChiTiet tiet8 = this.objCT;
                    objArray[13] = tiet8.SoLuong;
                    objArray[14] = RuntimeHelpers.GetObjectValue(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[i, 14]), 0, modGeneral.TypeOfValue.Nothing));
                    clsXuatKhoChiTiet tiet9 = this.objCT;
                    objArray[15] = tiet9.GiaVon;
                    clsXuatKhoChiTiet tiet10 = this.objCT;
                    objArray[0x10] = tiet10.TienVon;
                    clsXuatKhoChiTiet tiet11 = this.objCT;
                    objArray[0x11] = tiet11.GiaBanNT;
                    clsXuatKhoChiTiet tiet12 = this.objCT;
                    objArray[0x12] = tiet12.TienBanNT;
                    clsXuatKhoChiTiet tiet13 = this.objCT;
                    objArray[0x13] = tiet13.TyLeChietKhau;
                    clsXuatKhoChiTiet tiet14 = this.objCT;
                    objArray[20] = tiet14.TienChietKhauNT;
                    clsXuatKhoChiTiet tiet15 = this.objCT;
                    objArray[0x15] = tiet15.TyLeThue;
                    clsXuatKhoChiTiet tiet16 = this.objCT;
                    objArray[0x16] = tiet16.TienThueNT;
                    C1.Win.C1FlexGrid.C1FlexGrid grid7 = vSlist;
                    int num13 = i;
                    int num14 = 13;
                    objArray[0x17] = RuntimeHelpers.GetObjectValue(grid7[num13, num14]);
                    C1.Win.C1FlexGrid.C1FlexGrid grid8 = vSlist;
                    int num15 = i;
                    int num16 = 6;
                    objArray[0x18] = RuntimeHelpers.GetObjectValue(grid8[num15, num16]);
                    object[] arguments = objArray;
                    bool[] copyBack = new bool[] { 
                        true, true, true, true, true, true, true, true, true, true, true, true, false, true, false, true, 
                        true, true, true, true, true, true, true, true, true
                     };
                    NewLateBinding.LateCall(this.objFrmCall, null, "InsertDetails", arguments, null, null, copyBack, true);
                    if (copyBack[0])
                    {
                        grid2[num3, num4] = RuntimeHelpers.GetObjectValue(arguments[0]);
                    }
                    if (copyBack[1])
                    {
                        objCT.KhoaHangHoa = (string) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[1]), typeof(string));
                    }
                    if (copyBack[2])
                    {
                        grid3[num5, num6] = RuntimeHelpers.GetObjectValue(arguments[2]);
                    }
                    if (copyBack[3])
                    {
                        grid4[num7, num8] = RuntimeHelpers.GetObjectValue(arguments[3]);
                    }
                    if (copyBack[4])
                    {
                        tiet2.SoSeri = (string) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[4]), typeof(string));
                    }
                    if (copyBack[5])
                    {
                        tiet3.SoLoHang = (string) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[5]), typeof(string));
                    }
                    if (copyBack[6])
                    {
                        tiet4.NgayNhap = (string) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[6]), typeof(string));
                    }
                    if (copyBack[7])
                    {
                        tiet5.HanSuDung = (string) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[7]), typeof(string));
                    }
                    if (copyBack[8])
                    {
                        tiet6.KhoaDonViTinh = (string) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[8]), typeof(string));
                    }
                    if (copyBack[9])
                    {
                        grid5[num9, num10] = RuntimeHelpers.GetObjectValue(arguments[9]);
                    }
                    if (copyBack[10])
                    {
                        tiet7.QuyCach = (double) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[10]), typeof(double));
                    }
                    if (copyBack[11])
                    {
                        grid6[num11, num12] = RuntimeHelpers.GetObjectValue(arguments[11]);
                    }
                    if (copyBack[13])
                    {
                        tiet8.SoLuong = (double) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[13]), typeof(double));
                    }
                    if (copyBack[15])
                    {
                        tiet9.GiaVon = (double) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[15]), typeof(double));
                    }
                    if (copyBack[0x10])
                    {
                        tiet10.TienVon = (double) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[0x10]), typeof(double));
                    }
                    if (copyBack[0x11])
                    {
                        tiet11.GiaBanNT = (double) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[0x11]), typeof(double));
                    }
                    if (copyBack[0x12])
                    {
                        tiet12.TienBanNT = (double) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[0x12]), typeof(double));
                    }
                    if (copyBack[0x13])
                    {
                        tiet13.TyLeChietKhau = (int) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[0x13]), typeof(int));
                    }
                    if (copyBack[20])
                    {
                        tiet14.TienChietKhauNT = (double) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[20]), typeof(double));
                    }
                    if (copyBack[0x15])
                    {
                        tiet15.TyLeThue = (int) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[0x15]), typeof(int));
                    }
                    if (copyBack[0x16])
                    {
                        tiet16.TienThueNT = (double) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[0x16]), typeof(double));
                    }
                    if (copyBack[0x17])
                    {
                        grid7[num13, num14] = RuntimeHelpers.GetObjectValue(arguments[0x17]);
                    }
                    if (copyBack[0x18])
                    {
                        grid8[num15, num16] = RuntimeHelpers.GetObjectValue(arguments[0x18]);
                    }
                }
            }
            vSlist = null;
            this.Dispose();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_ChonHangTuGiaoHang_Load(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(this.cFrmKhoaKhachHang, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                this.Dispose();
            }
            else
            {
                Hashtable hashtable = new Hashtable();
                hashtable.Add("HB", "H\x00e0ng b\x00e1n");
                hashtable.Add("KM", "Khuyến m\x00e3i");
                this.VSlist.Cols[5].DataMap = hashtable;
                this.AdvKhachHang.Value = this.cFrmKhoaKhachHang;
                this.LoadData();
            }
        }

        public DataTable GetData()
        {
            string commandText = "";
            commandText = " SELECT GH.Khoa, 0 as Chon, GH.SoChungTu, dbo.Char2Date(GH.NgayChungTu) as NgayGiao, GH.LoaiTien, CT.Khoa as KhoaChiTiet,  CT.Loai, HH.Ma as MaHang, HH.TenViet as TenHang, DVT.TenViet as DVT, CT.SoLuong, CT.GiaBanNT, CT.TienBanNT, GH.KhoaTKThanhToan as KhoaTaiKhoan, CT.SoLuongDaXuat  FROM ST_XuatKho GH LEFT JOIN ST_XuatKhoChiTiet CT ON GH.Khoa = CT.KhoaPhieuXuat  LEFT JOIN DM_HangHoa HH on CT.KhoaHangHoa = HH.Khoa  LEFT JOIN DM_DonViTinh DVT on CT.KhoaDonViTinh = DVT.Khoa  WHERE GH.LoaiChungTu ='GH' AND Isnull(CT.SoLuongDaXuat,0) < Isnull(CT.SoLuong,0) AND GH.KhoaDoiTuong = '" + this.AdvKhachHang.Value + "'";
            return DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_ChonHangTuGiaoHang));
            this.Panel1 = new Panel();
            this.Label16 = new Label();
            this.AdvKhachHang = new ADVObjects();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel2 = new Panel();
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.TextBox1 = new TextBox();
            this.CKAll = new CheckBox();
            this.Panel1.SuspendLayout();
            this.VSlist.BeginInit();
            this.Panel2.SuspendLayout();
            this.SuspendLayout();
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.Label16);
            this.Panel1.Controls.Add(this.AdvKhachHang);
            this.Panel1.Dock = DockStyle.Top;
            Point point = new Point(0, 0);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            Size size = new Size(0x37e, 0x25);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0;
            this.Label16.AutoEllipsis = true;
            this.Label16.AutoSize = true;
            this.Label16.BackColor = Color.Transparent;
            point = new Point(7, 11);
            this.Label16.Location = point;
            this.Label16.Name = "Label16";
            this.Label16.RightToLeft = RightToLeft.No;
            size = new Size(0x41, 13);
            this.Label16.Size = size;
            this.Label16.TabIndex = 0;
            this.Label16.Text = "Kh\x00e1ch h\x00e0ng";
            this.Label16.TextAlign = ContentAlignment.TopRight;
            this.AdvKhachHang.Conditions = "";
            this.AdvKhachHang.LoaiDoiTuong = modGeneral.TypeObjects.KhachHang;
            point = new Point(0x58, 8);
            this.AdvKhachHang.Location = point;
            this.AdvKhachHang.Name = "AdvKhachHang";
            this.AdvKhachHang.ReadOnly = true;
            size = new Size(0x164, 20);
            this.AdvKhachHang.Size = size;
            this.AdvKhachHang.TabIndex = 1;
            this.AdvKhachHang.UpperText = true;
            this.AdvKhachHang.Value = "";
            this.AdvKhachHang.WidthCode = 100;
            this.VSlist.AllowSorting = AllowSortingEnum.None;
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Dock = DockStyle.Fill;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(0, 0x25);
            this.VSlist.Location = point;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 1;
            this.VSlist.Rows.DefaultSize = 0x11;
            size = new Size(0x37e, 0x1f2);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 0;
            this.VSlist.VisualStyle = VisualStyle.Office2007Blue;
            this.Panel2.Controls.Add(this.CmdCancel);
            this.Panel2.Controls.Add(this.CmdOK);
            this.Panel2.Controls.Add(this.TextBox1);
            this.Panel2.Dock = DockStyle.Bottom;
            point = new Point(0, 0x217);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x37e, 0x22);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 0x1b;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = ACCOUNTING.My.Resources.Resources.Closed;
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x326, 4);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x4c, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 2;
            this.CmdCancel.Text = "Th&o\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = ACCOUNTING.My.Resources.Resources.Selected;
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x2d5, 4);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x4d, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 1;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            point = new Point(6, 6);
            this.TextBox1.Location = point;
            this.TextBox1.Name = "TextBox1";
            size = new Size(0x60, 20);
            this.TextBox1.Size = size;
            this.TextBox1.TabIndex = 0;
            this.CKAll.AutoSize = true;
            point = new Point(4, 0x27);
            this.CKAll.Location = point;
            this.CKAll.Name = "CKAll";
            size = new Size(15, 14);
            this.CKAll.Size = size;
            this.CKAll.TabIndex = 12;
            this.CKAll.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x37e, 0x239);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.CKAll);
            this.Controls.Add(this.VSlist);
            this.Controls.Add(this.Panel1);
            this.Controls.Add(this.Panel2);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Frm_ChonHangTuGiaoHang";
            this.ShowIcon = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "DANH SACH HANG HOA DA GIAO CHO KHACH";
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            this.VSlist.EndInit();
            this.Panel2.ResumeLayout(false);
            this.Panel2.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void LoadData()
        {
            this.cFrmData = new DataView(this.GetData());
            this.VSlist.DataSource = this.cFrmData;
            C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
            vSlist.Cols[0].Visible = false;
            vSlist.Cols[5].Visible = false;
            vSlist.Cols[12].Visible = false;
            vSlist.Cols[13].Visible = false;
            vSlist[0, 1] = "";
            vSlist[0, 2] = modGeneral.Tranlated("Số giao h\x00e0ng", "");
            vSlist[0, 3] = modGeneral.Tranlated("Ng\x00e0y", "");
            vSlist[0, 4] = modGeneral.Tranlated("Loại tiền", "");
            vSlist[0, 6] = modGeneral.Tranlated("Loại", "");
            vSlist[0, 7] = modGeneral.Tranlated("M\x00e3 h\x00e0ng", "");
            vSlist[0, 8] = modGeneral.Tranlated("T\x00ean h\x00e0ng", "");
            vSlist[0, 9] = modGeneral.Tranlated("ĐVT", "");
            vSlist[0, 10] = modGeneral.Tranlated("Số lượng", "");
            vSlist[0, 11] = modGeneral.Tranlated("Đơn gi\x00e1", "");
            vSlist[0, 12] = modGeneral.Tranlated("Th\x00e0nh tiền", "");
            vSlist[0, 14] = modGeneral.Tranlated("SL đ\x00e3 xuất", "");
            vSlist.Cols[1].Width = 0x18;
            vSlist.Cols[2].Width = 0x55;
            vSlist.Cols[3].Width = 70;
            vSlist.Cols[4].Width = 60;
            vSlist.Cols[6].Width = 80;
            vSlist.Cols[7].Width = 80;
            vSlist.Cols[8].Width = 180;
            vSlist.Cols[9].Width = 60;
            vSlist.Cols[10].Width = 50;
            vSlist.Cols[11].Width = 90;
            vSlist.Cols[12].Width = 90;
            vSlist.Cols[14].Width = 50;
            vSlist.Cols[1].DataType = System.Type.GetType("System.Boolean");
            vSlist.Cols[10].DataType = System.Type.GetType("System.Decimal");
            vSlist.Cols[10].Format = "#,##0.00";
            vSlist.Cols[11].DataType = System.Type.GetType("System.Decimal");
            vSlist.Cols[11].Format = "#,##0.00";
            vSlist.Cols[12].DataType = System.Type.GetType("System.Decimal");
            vSlist.Cols[12].Format = "#,##0.00";
            vSlist.Cols[14].DataType = System.Type.GetType("System.Decimal");
            vSlist.Cols[14].Format = "#,##0.00";
            vSlist = null;
        }

        private void VSlist_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (e.Col != 1)
            {
                e.Cancel = true;
            }
        }

        internal virtual ADVObjects AdvKhachHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvKhachHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvKhachHang = value;
            }
        }

        internal virtual CheckBox CKAll
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKAll;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CKAll_CheckedChanged);
                if (this._CKAll != null)
                {
                    this._CKAll.CheckedChanged -= handler;
                }
                this._CKAll = value;
                if (this._CKAll != null)
                {
                    this._CKAll.CheckedChanged += handler;
                }
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCancel_Click);
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click -= handler;
                }
                this._CmdCancel = value;
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click += handler;
                }
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual Label Label16
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label16;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label16 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual TextBox TextBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox1 = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSlist_BeforeEdit);
                if (this._VSlist != null)
                {
                    this._VSlist.BeforeEdit -= handler;
                }
                this._VSlist = value;
                if (this._VSlist != null)
                {
                    this._VSlist.BeforeEdit += handler;
                }
            }
        }
    }
}

